package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 资源表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("resource")
public class Resource extends Model<Resource> implements Serializable {


    /**
     * 资源表
     */
    @TableId(value = "resource_id", type = IdType.AUTO)
    private Integer resourceId;

    /**
     * 资源类型
     */
    @TableField("resource_type")
    private Integer resourceType;

    /**
     * 资源路径
     */
    @TableField("resource_url")
    private String resourceUrl;

    public Integer getResourceId() {
        return resourceId;
    }

    public Resource setResourceId(Integer resourceId) {
        this.resourceId = resourceId;
        return this;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public Resource setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
        return this;
    }

    public String getResourceUrl() {
        return resourceUrl;
    }

    public Resource setResourceUrl(String resourceUrl) {
        this.resourceUrl = resourceUrl;
        return this;
    }

    @Override
    public String toString() {
        return "Resource{" +
                "resourceId=" + resourceId +
                ", resourceType=" + resourceType +
                ", resourceUrl=" + resourceUrl +
                "}";
    }
}
